package com.jyw.router.hospital.domain.dto;

import cn.hutool.core.util.RandomUtil;
import com.jyw.router.hospital.domain.HospitalInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 沈峻
 * @ClassName HospitalDicDto
 * @Description TODO
 * @Date 2023/4/10 16:29
 **/
@ApiModel("医院字典信息")
@Data
@NoArgsConstructor
public class HospitalDicDto {

    @ApiModelProperty("医院主键")
    private Long id;

    @ApiModelProperty("服务名称")
    private String name;

    public HospitalDicDto(HospitalInfo info) {
        setId(info.getId());
        setName(info.getServerName());
    }
}
